
<?php $this->beginClip('pagetitle'); ?>活动<?php $this->endClip(); ?>

<header class="page-header">
	<a href="<?php echo url('/activity/test', array('id_wxuser_mcard' => $wxuserMcard->id_wxuser_mcard)); ?>">
		<span class="am-icon-chevron-left" id="btn-back" style="color: #FFF !important;"></span>
		<h1>活动</h1>
	</a>
</header>
<div class="am-g reward-list">
<?php if(empty($activitys)): ?>
    <p class="empty-list-noti text-center">暂时没有活动</p>
    <?php else: ?>
        <?php foreach ($activitys as $activity):?>
            <?php if($activity['activity_endtime'] > date("Y-m-d H:i:s")):?>
                <a href="<?php echo url('/activity/activitydetail', array('id_wxuser_mcard' => $wxuserMcard->id_wxuser_mcard,'id_onlineactivity'=> $activity['id_onlineactivity'],'onlineactivity_action'=> $activity['action']));?>" class="am-u-sm-6 am-thumbnail" style="float: left;">
                    <div class="content">
                        <img src="" />

                        <div class="caption">
                            <h3 class="title">活动名称：<?php echo $activity['online_activity_name'];?></h3>
                            <p class="title">活动时间：<?php echo date($activity['activity_starttime']);?>-<?php echo $activity['activity_endtime'];?></p>
                        </div>
                    </div>
                </a>
            <?php endif;?>
        <?php endforeach;?>
    <?php endif;?>
</div>